#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(int argc,char* argv[])
{   
    unsigned int i=1000,n=0;
    int a=0;
    
    while(i)
    {   
        i--;
        int i1=i%100%10,i10=i%100/10,i100=i/100;
        if( (i == (i1*i1*i1 + i10*i10*i10 + i100*i100*i100)) && i != 1 && i!=0)
        {
            n++;
            a=(i1*i1*i1 + i10*i10*i10 + i100*i100*i100);
            printf("%d|%d\n",i,a);           
        }
        
    }

    printf("水仙花数为：%u\n",n);
    return 0;
}